#ifndef __WS2812_SPI_H
#define __WS2812_SPI_H

#ifdef __cplusplus
extern "C" {
#endif

#include "main.h"

#define WS2812_NUM_LEDS 2048
#define WS2812_BUFFER_SIZE (WS2812_NUM_LEDS * 12)

extern uint8_t ws2812_buffer[];
extern uint8_t ws2821_spi_send_done;

int ws2812_init_spi(void);
void ws2812_send_data_spi(uint32_t buffersize);

#ifdef __cplusplus
}
#endif

#endif /* __WS2812_SPI_H */
